﻿using System.ComponentModel.DataAnnotations;

namespace B.R.RabbitRoot.Read.API.Dtos
{
    /// <summary>
    /// 溯源显示DTO
    /// </summary>
    public class SourceInfoDTO
    {
        /// <summary>
        /// 溯源信息主键
        /// </summary>
        [Key]
        public int SourceInfoId { get; set; }
        /// <summary>
        /// 登录外键主键
        /// </summary>
        public int AccountId { get; set; }
        /// <summary>
        /// 登陆账号
        /// </summary>
        public string AccountName { get; set; }
        /// <summary>
        /// 登陆昵称
        /// </summary>
        public string AccountNickName { get; set; }
        /// <summary>
        /// 商品名称外键
        /// </summary>
        public int ProductNameId { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 生产批次
        /// </summary>
        public string Sourceproduction { get; set; }
        /// <summary>
        /// 保质日期（天）
        /// </summary>
        public int SourceexpirationTime { get; set; }
        /// <summary>
        /// 生产许可证
        /// </summary>
        public string Sourcelicence { get; set; }
        /// <summary>
        /// 生产企业
        /// </summary>
        public string SourceCreamFirm { get; set; }
        /// <summary>
        /// 封面图
        /// </summary>
        public string SourCecoverPicture { get; set; }
        /// <summary>
        /// 信息完善度
        /// </summary>
        public int Completeness { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string SourceCreamPerson { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime SourceCreamTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? SourceUpdatePerson { get; set; }
        /// <summary>
        /// 删除标识符
        /// </summary>
        public bool DeleteIs { get; set; }
    }
}
